package com.yanqu.road.entity.enums;

/**
 * 当铺员工类型
 */
public enum eUpdateScope {

	WhiteUser("白名单", 0),
	ForwardServer("先遣服", 1),
	FormalServer("正式服", 2),
	;

	private String name;
	private int intValue;

	eUpdateScope(String name, int value) {
		this.intValue = value;
		this.name = name;
	}

	public int getValue() {
		return intValue;
	}

	public String getName() {
		return name;
	}

	public static eUpdateScope forValue(int value) {
		for (eUpdateScope type : eUpdateScope.values()) {
			if (type.intValue == value) {
				return type;
			}
		}
		return null;
	}
}
